const removeConsolePlugin = [];

if (process.env.NODE_ENV === 'production') {
  removeConsolePlugin.push('transform-remove-console');
}

module.exports = {
  presets: ['@vue/cli-plugin-babel/preset'],
  plugins: [
    [
      'import',
      {
        libraryName: '@hips/vue-ui',
        libraryDirectory: 'es',
        style: (name) => `${name}/style/stylus`,
      },
      '@hips/vue-ui',
    ],
    ...removeConsolePlugin,
  ],
};
